package Demo6;

public class Demo6 {

    public static void main(String[] args) {
        Object locker = new Object();

        synchronized (locker) {
            synchronized (locker) {
                //执行代码逻辑......
                // doSomething();
            }
        }
    }
}
